import { http } from '@/utils/http'

export function useContractPurchaseApi() {
  return {
    // 获得合同采购清单
    getContractPurchaseItem(id: string) {
      return http.get<ContractProcForm>('/prod-api/admin-api/project/contract-purchase-item/get?id=' + id)
    },
    // 获得合同采购清单分页
    getContractPurchaseItemPage(query: any) {
      return http.get<ContractProcForm[]>('/prod-api/admin-api/project/contract-purchase-item/page', query)
    },
    getContractManifestFile(projectNumber: string) {
      return http.get<string>('/prod-api/admin-api/project/contract-purchase-item/getGoods?projectNumber='+projectNumber)
    }
  }
}
